<?php
header("Content-Type: application/javascript");
include_once( 'initlite.php' );
$facelist = $c->emotions();
$faces = "";
$url = "";
for($i=0; $i<count($facelist); $i++){
	$thisface = $facelist[$i];
	if($i){
		$faces .= ",\"".$thisface["value"]."\"";
		$url .= ",\"".$thisface["url"]."\"";
	}
	else{
		$faces .= "\"".$thisface["value"]."\"";
		$url .= "\"".$thisface["url"]."\"";
	}
}
?>
var faces = new Array(<?php echo $faces; ?>);
var faceurl = new Array(<?php echo $url; ?>);